<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <ui:composition template="/shared/_layout.xhtml">
        <ui:define name="title">
            Espace d'administration de BooXtore.com
        </ui:define>
        <ui:define name="css">
            <h:outputStylesheet library="css" name="form.css"/>
            <h:outputStylesheet library="css/library" name="notification.css"/>
        </ui:define>
        <ui:define name="content">
            <f:event listener="#{accountLogin.isNotLogged()}" type="preRenderView" />
            <h1>Notifications</h1>
            <h:dataTable class="notification" value="#{libraryManager.notificationsArticles}" var="entry" columnClasses=",notification-option">
                <h:column>
                    <h:outputText value="#{entry.name}"/>
                </h:column>
                <h:column>
                    <h:form>
                        <h:commandButton class="update" value="Modifier" action="#{libraryManager.selectArticle(entry)}"/>
                    </h:form>
                </h:column>
            </h:dataTable>
            <p>
                <h:link outcome="/index" class="back" value="Retour"/>
            </p>
        </ui:define>
    </ui:composition>
</html>